#ifndef SERVER_XML_HANDLER_H
#define SERVER_XML_HANDLER_H

#include <QString>
#include <QtXml>
//#include "server.h"
class Server;

class ServerXmlHandler : public QObject, public QXmlDefaultHandler
{
	Q_OBJECT
public:
	ServerXmlHandler( Server *serverRef );
	bool startElement(const QString &namespaceURI, const QString &localName,
                       const QString &qName, const QXmlAttributes &attributes);
    bool endElement(const QString &namespaceURI, const QString &localName,
                     const QString &qName);
    bool characters(const QString &str);
    bool fatalError(const QXmlParseException &exception);
	QString getErrorString();

signals:
	void logStringStored(void);
private:
	Server *serverRef;
	bool startMet;
	QString errorString;
	QString currentApp;
	//QList<QString> *logList;
	bool inShowResp;
	bool inLogResp;
	int client_id;

};

#endif